# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-colorful
_pkgname=colorful
pkgver=0.5.5
pkgrel=1
pkgdesc="Terminal string styling done right, in Python"
url="https://github.com/timofurrer/colorful"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/timofurrer/colorful/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 -m unittest discover -p "*_test.py"
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
dc5e372261bd308a82bd0446a885b4c63a5a5781540731407f1a364d2c5397fe950f96fef3be8ffeab80cf02010be9551ba5b8550930e3fed5173cdc28a69306  py3-colorful-0.5.5.tar.gz
"
